package com.tql.test_09;

import java.util.function.Supplier;
// 供给性接口，没有参数，只有返回值
public class Demo4 {
    public static void main(String[] args) {
        Supplier supplier=new Supplier<String>(){
            @Override
            public String get() {
                return "helo";
            }
        };
        System.out.println(supplier.get());
        Supplier supplier1=()->{return "hhh";};
        System.out.println(supplier.get());
    }
}
